<template>
    <div>
        <mt-swipe :auto="4000">
            <!-- 将来，谁使用此 轮播图 组件， 谁为我们传递 swipeData -->
            <!-- 此时， swipeData 应该是富组件向子组件传值来设置 -->
            <mt-swipe-item v-for="item in swipeData" :key="item.id">
                <img :src="item.images" :class="{ 'full': isfull }">
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>

<script>
export default {
  props: ["swipeData", "isfull"]
};
</script>

<style lang="less" scoped>
.mint-swipe {
  height: 200px;
  .mint-swipe-item{
      text-align: center;
  }
  img {
    height: 200px;
  }
}
.full {
  width: 100%;
}
</style>